export const formlizeTitle = str => {
    const arr = str.split('/');
    if(str == '/') {
        return 'Home'
    } else {
        let string = arr[arr.length-1];
        return string.slice(0,1).toUpperCase() + string.slice(1);
    }
}

export const formlizeKilo = num => {
    return ~~( num / 1000 ) > 0 ? `${ ( num / 1000 ).toFixed(1)} K` : `${num.toFixed(1)}`
}